Prop

from acron.actor import Prop
class Prop(type=None, default=None, *, edit=True, save=True, replicate=False, on_rep=None, pin=True, hint=None, range=None, doc='', fget=None, fset=None)

Bases: object

A declared property.

type coerces assigned values (Vec3, float, str, bool, a color, or any callable); default may be a value or a zero-arg factory. Flags: edit (shown in the inspector), save (written to the scene file), replicate (networked; on_rep names the callback), pin (exposed as a blueprint pin). fget/fset make the prop a view over engine state (the NodePath transform) instead of stored data. hint / range / doc are metadata for tools.

Inheritance diagram

digraph inheritance8f6c89b370 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "Prop" [URL="acron.actor.Prop.html#acron.actor.Prop",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="A declared property."]; }
default
doc
edit
fget
fset
hint
name
on_rep
owner
pin
range
replicate
save
type