Page 1 of 1

ResizeBillboard work?

Posted: Mon Mar 25, 2024 7:19 pm
by minimy
Hello, when try to resize a billboard give me this error 'error memory address'. Is a bug?

Code: Select all

    bb= CreateBillboardGroup(#PB_Any, MaterialID(mate),10,10)
    AddBillboard(bb,0,0,0)
    ResizeBillboard(0 , bb, 10,10) ; NO WORK (error memory address???)
    

Re: ResizeBillboard work?

Posted: Mon Mar 25, 2024 8:37 pm
by Demivec

Code: Select all

Result = AddBillboard(#BillboardGroup, x, y, z)

Return value
The new billboard index. This value can be used to manipulate this specific billboard with the commands which needs one.
What about this change to your non-runnable code sample?

Code: Select all

    bb= CreateBillboardGroup(#PB_Any, MaterialID(mate),10,10)
    Result = AddBillboard(bb,0,0,0)
    ResizeBillboard(Result, bb, 10,10)